package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitScoreRouter(Router *gin.RouterGroup)  {
	ScoreRouter := Router.Group("score").Use(middleware.JWTAuth())
	{
		ScoreRouter.GET("/getScoreList", v1.GetScoreList)
		ScoreRouter.GET("/getScoreSummary", v1.GetScoreSummary)
		ScoreRouter.GET("/getScoreFilter", v1.GetScoreFilter)
		ScoreRouter.POST("/addScore", v1.AddOneScore)
		ScoreRouter.PUT("/updateScore", v1.UpdateScore)
		ScoreRouter.DELETE("/deleteScore", v1.DeleteScore)
	}
}
